package OODay02_Day08;
//父类
public class Test {
    String name;
    int age;
    String color;
    String number;
    Test(){
    }
    Test(String name,int age,String color,String number){
        this.name=name;
        this.age=age;
        this.color=color;
        this.number=number;
    }
    void sayHi(){
        System.out.println("这是"+age+"岁的"+name+",喜欢"+color+"色,参赛序号为"+number);
    }
    void cook(){
        System.out.println(name+"今天做的是中餐");
    }
}
